package com.xyht.sca_s.student_manage_system.modules.carUseReturn.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author XYHT
 * @since 2023-08-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sms_car_use_return_application")
@ApiModel(value="SmsCarUseReturnApplication对象", description="")
public class SmsCarUseReturnApplication implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    @ApiModelProperty(value = "车辆id")
    private String carId;

    private String carPic;

    private String carName;

    private String carPosition;

    private String carNum;

    @ApiModelProperty(value = "归还申请人id")
    private String returnApplyUserId;

    @ApiModelProperty(value = "归还申请人姓名")
    private String returnApplyName;

    @ApiModelProperty(value = "归还申请人电话")
    private String returnApplyPhone;

    @ApiModelProperty(value = "性别 1：男，2：女")
    private Integer sex;

    @ApiModelProperty(value = "申请部门")
    private String returnApplyDepartment;

    @ApiModelProperty(value = "备注")
    private String returnRemark;

    @ApiModelProperty(value = "车辆类型")
    private String returnCarType;

    @ApiModelProperty(value = "审批状态：0审批中，1：通过，2：驳回，3：撤销")
    private Integer allowStatus;

    @ApiModelProperty(value = "结束时间")
    private Date endTime;

    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;


}
